<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
	<link rel="stylesheet" href="css/base.css" />
	<link rel="stylesheet" href="css/info-mgt.css" />
	<link rel="stylesheet" href="css/WdatePicker.css" />
	<link rel="stylesheet" type="text/css" href="css/jquery.dialog.css" />
	<link rel="stylesheet" href="css/index.css" />
<title>毕业生简历管理系统</title>
	<script type="text/javascript" src="js/jquery.js"></script>
	<style type="text/css">
	a:link {
 	font-size: 12px;
 	color: #000000;
	text-decoration: none;
	}
	a:visited {
	font-size: 12px;
	color: #000000;
 	text-decoration: none;
	}
	a:hover {
 	font-size: 12px;
 	color: #999999;
 	text-decoration: none;
	}
	a svg:hover{
		transform: scale(1.2);
	}
	 h1{
		 font-family: 华文行楷;
	 }
</style>
</head>

<body>
<div id="container">
	<div id="hd">
		<div class="hd-wrap ue-clear">
			<div class="top-light"></div>
			<h1>毕业生简历管理系统</h1>
			<div class="login-info ue-clear">
				<div class="welcome ue-clear"><span>欢迎您,</span><a href="candidateRecommend?c_id=${sessionScope.candidate.c_id}" class="user-name">${candidate.name}</a></div>
			</div>
			<div class="toolbar ue-clear">
				<a href="candidateExit" class="quit-btn exit"></a>
			</div>
		</div>
	</div>
	<div id="bd">
		<div class="wrap ue-clear">
			<div class="sidebar">
				<h2 class="sidebar-header"><p>功能导航</p></h2>
				<ul class="nav">
					<li class="recommend"><div class="nav-header" onclick="candidateSkip1()"><a class="ue-clear"><span>内容推荐</span></a></div></li>
					<li class="person"><div class="nav-header" onclick="candidateSkip2()"><a class="ue-clear"><span>个人简历管理</span></a></div>
					<li class="search"><div class="nav-header" onclick="candidateSkip3()"><a class="ue-clear"><span>职位搜索</span></a></div></li>
					<li class="inform"><div class="nav-header" onclick="candidateSkip6()"><a class="ue-clear"><span>我的消息</span></a></div></li>
					<li class="emailSending"><div class="nav-header" onclick="candidateSkip7()"><a class="ue-clear"><span>邮件发送</span></a></div></li>
				</ul>
			</div>
			<div class="content">
				<div class="title"><h2>我的通知</h2></div>
				<div class="table-box">
					<table>
						<thead>
						<tr>
							<th class="num">序号</th>
							<th class="num">公司名称</th>
							<th class="num">地址</th>
							<th class="num">邮件</th>
							<th class="num">联系方式</th>
							<th class="num">查看/联系</th>
							<th class="num">简历</th>
							<th class="num">面试</th>
							<th class="num">录取结果</th>
						</tr>
						</thead>
						<tbody>
						<c:forEach items="${employees}" var="employee" begin="0" varStatus="status">
							<tr>
								<td class="num">${status.count}</td>
								<td class="num">${employee.name}</td>
								<td class="num">${employee.address}</td>
								<td class="num">${employee.phone_number}</td>
								<td class="num">${employee.email}</td>
								<td class="num">
									<a   style="color:blue" href="employerInfo?e_id=${employee.e_id}" title="详细信息">
										<svg t="1648472204377" class="icon" viewBox="0 0 1304 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="22759" width="35" height="35"><path d="M1078.06466969 815.07975268H758.54757525l-76.52300154 98.00314207c-18.79512286 22.82264978-52.35784332 28.19268512-75.1804931 9.39756142-4.02752609-2.68501767-6.71254376-5.37003534-9.39756142-9.39756142L520.92351765 815.07975268H218.85903765c-59.07038708 0-107.40070432-48.33031723-107.40070432-107.40070431V197.52570432c0-59.07038708 48.33031723-107.40070432 107.40070432-107.40070432h859.20563205c59.07038708 0 107.40070432 48.33031723 107.40070431 107.40070432v510.15334405c0 59.07038708-48.33031723 107.40070432-107.40070431 107.40070431z" fill="#2F77F1" p-id="22760"></path><path d="M406.81026958 385.47693625c37.59024655 0 67.12544009 29.53519354 67.1254401 67.1254401s-29.53519354 67.12544009-67.1254401 67.12544009-67.12544009-29.53519354-67.1254401-67.12544009 29.53519354-67.12544009 67.1254401-67.1254401z m241.6515845 0c37.59024655 0 67.12544009 29.53519354 67.12543928 67.1254401s-29.53519354 67.12544009-67.12543928 67.12544009-67.12544009-29.53519354-67.12544009-67.12544009 29.53519354-67.12544009 67.12544009-67.1254401z m241.65158368 0c37.59024655 0 67.12544009 29.53519354 67.1254401 67.1254401s-29.53519354 67.12544009-67.1254401 67.12544009-67.12544009-29.53519354-67.1254401-67.12544009 29.53519354-67.12544009 67.1254401-67.1254401z" fill="#AFFCFE" p-id="22761"></path></svg>									</a>&nbsp;&nbsp;&nbsp;
									<a class="num" style="color:blue" href="/candidateWebSocket${sessionScope.candidate.name}?e_name=${employee.name}" title="在线交流">
										<svg t="1648472014997" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13327" width="35" height="35"><path d="M881.19808 227.28704h-71.92064V203.008c0-44.19584-34.21184-80.14848-76.25728-80.14848H147.93216C105.87648 122.88 71.68 158.81216 71.68 203.008v393.088c0 44.19584 34.21184 80.1536 76.288 80.1536h46.86336l-1.024 79.64672a45.24032 45.24032 0 0 0 26.78784 42.33216 42.65984 42.65984 0 0 0 17.13664 3.584 43.28448 43.28448 0 0 0 29.94688-12.11392l11.53024-11.04384a73.05216 73.05216 0 0 0 16.95232 2.00704H643.072l118.43072 113.46432A43.25888 43.25888 0 0 0 791.4496 906.24a42.66496 42.66496 0 0 0 17.13152-3.584 45.21984 45.21984 0 0 0 26.78272-42.32192l-1.024-79.65696h46.85824c42.05056 0 76.2624-35.95776 76.2624-80.14848V307.44064c-0.02048-44.19584-34.21184-80.1536-76.2624-80.1536zM237.42464 633.46688a43.008 43.008 0 0 0-30.86336-13.04576H147.93216c-11.40224 0-20.67456-10.91584-20.67456-24.32512V203.008c0-13.40928 9.27744-24.32 20.67456-24.32h585.088c11.39712 0 20.66944 10.91072 20.66944 24.32v393.088c0 13.40928-9.27232 24.32512-20.66944 24.32512H381.07648a43.12064 43.12064 0 0 0-29.92128 12.11904l-101.45792 97.2032 0.8192-63.4112a46.3104 46.3104 0 0 0-13.09184-32.86528z m664.448 67.072c0 13.40928-9.27744 24.32512-20.67456 24.32512h-58.63424a43.008 43.008 0 0 0-30.86848 13.05088 46.3104 46.3104 0 0 0-13.07648 32.87552l0.81408 63.3856-101.44768-97.2032a43.08992 43.08992 0 0 0-29.93152-12.12416H335.3344l50.7136-48.59904h346.96192c42.04544 0 76.25728-35.95776 76.25728-80.1536V283.136h71.92064c11.39712 0 20.67456 10.91584 20.67456 24.32512v393.08288z" fill="#2966C1" p-id="13328"></path><path d="M338.20672 405.73952c0-29.21472-22.2208-52.89984-49.63328-52.89984s-49.63328 23.68512-49.63328 52.89984 22.2208 52.89984 49.63328 52.89984 49.63328-23.68512 49.63328-52.89984z m153.91744 0c0-29.21472-22.2208-52.89984-49.63328-52.89984S392.8576 376.5248 392.8576 405.73952s22.2208 52.89984 49.6384 52.89984 49.63328-23.68512 49.63328-52.89984z m161.792 0c0-29.21472-22.22592-52.89984-49.6384-52.89984s-49.63328 23.68512-49.63328 52.89984 22.2208 52.89984 49.63328 52.89984 49.64352-23.68512 49.64352-52.89984z" fill="#FD9A16" p-id="13329"></path></svg>
									</a>
								</td>
								<td class="num">
									<c:if test="${employerEmployeeMap.get(employee).cv_isAgree==1}">
										<lable class="num">已通过</lable>
									</c:if>
									<c:if test="${employerEmployeeMap.get(employee).cv_isAgree==-1}">
										<lable class="num">未通过</lable>
									</c:if>
									<c:if test="${employerEmployeeMap.get(employee).cv_isAgree==0}">
										<lable class="num">审核中</lable>
									</c:if>
								</td>
								<td class="num">
									<c:choose>
										<c:when test="${employerEmployeeMap.get(employee).cv_isAgree==0}">
											<lable class="num">敬请期待</lable>
										</c:when>
										<c:otherwise>
											<c:choose>
												<c:when test="${employerEmployeeMap.get(employee).cv_isAgree==-1}">
													<lable class="num">未通过</lable>
												</c:when>
												<c:otherwise>
													<c:if test="${employerEmployeeMap.get(employee).interview_isAgree==1}">
														<lable class="num">已通过</lable>
													</c:if>
													<c:if test="${employerEmployeeMap.get(employee).interview_isAgree==-1}">
														<lable class="num">未通过</lable>
													</c:if>
													<c:if test="${employerEmployeeMap.get(employee).interview_isAgree==0}">
														<lable class="num">审核中</lable>
													</c:if>
												</c:otherwise>
											</c:choose>
										</c:otherwise>
									</c:choose>
								</td>
								<td class="num">
									<c:choose>
										<c:when test="${employerEmployeeMap.get(employee).interview_isAgree==-1||employerEmployeeMap.get(employee).cv_isAgree==-1}">
											<lable class="num">未通过</lable>
										</c:when>
										<c:otherwise>
											<c:if test="${employerEmployeeMap.get(employee).interview_isAgree==0||employerEmployeeMap.get(employee).cv_isAgree==0}">
												<lable class="num">敬请期待</lable>
											</c:if>
											<c:if test="${employerEmployeeMap.get(employee).interview_isAgree==1}">
												<lable class="num">已通过</lable>
											</c:if>
										</c:otherwise>
									</c:choose>
								</td>
							</tr>
						</c:forEach>
						</tbody>
					</table>
				</div>
				<div class="pagination ue-clear">
					<%--	分页--%>
					<%--		<nav aria-label="Page navigation">--%>
					<ul class="pagination">
						<%--				前一页--%>
						<c:choose>
							<c:when test="${pageInfo.isFirstPage}">
								<li>
									<a href="javascript:void(0)" aria-label="Previous">
										<span aria-hidden="true"><<</span>
									</a>
								</li>
							</c:when>
							<c:otherwise>
								<li>
									<a href="candidateNotice?c_id=${candidate.c_id}&&pageNum=${pageInfo.prePage}" aria-label="Previous">
										<span aria-hidden="true"><<</span>
									</a>
								</li>
							</c:otherwise>
						</c:choose>
						<%--			中间具体页数--%>
						<c:forEach items="${pageInfo.navigatepageNums}" var="pi">
							<li><a href="candidateNotice?c_id=${candidate.c_id}&&pageNum=${pi}">${pi}</a></li>
						</c:forEach>

						<%--			后一页--%>

						<c:choose>
							<c:when test="${pageInfo.isLastPage}">
								<li>
									<a href="javascript:void(0)" aria-label="Next">
										<span aria-hidden="true">>></span>
									</a>
								</li>
							</c:when>
							<c:otherwise>
								<li>
									<a href="candidateNotice?c_id=${candidate.c_id}&&pageNum=${pageInfo.nextPage}" aria-label="Next">
										<span aria-hidden="true">>></span>
									</a>
								</li>
							</c:otherwise>
						</c:choose>
					</ul>
					<%--		</nav>--%>
				</div>
			</div>
		</div>
	</div>
</div>
</body>

<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/WdatePicker.js"></script>
<script type="text/javascript" src="js/jquery.pagination.js"></script>
<script type="text/javascript" src="js/core.js"></script>
<script type="text/javascript" src="js/jquery.dialog.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script>
	function candidateSkip1(){ const c_id="${candidate.c_id}"; location.href="candidateRecommend?c_id="+c_id}
	function candidateSkip2(){ const c_id="${candidate.c_id}"; location.href="updateCandidate?c_id="+c_id}
	function candidateSkip3(){ const c_id="${candidate.c_id}"; location.href="findAllPositions?c_id="+c_id}
	function candidateSkip6(){ const c_id="${candidate.c_id}"; location.href="candidateNotice?c_id="+c_id}
	function candidateSkip7(){ location.href="canSendEmail"}

	const  msg="${message}";
	if(msg){
		alert(msg);
	}
</script>
</html>
